﻿<?php
$data = require '../data.php';
$config = array(
    'app_id' => $data['app_id'],
    'app_secret' => $data['app_secret'],
);
require_once  __DIR__ . "/../wechat/jssdk.php";
@$jssdk = new JSSDK($config['app_id'], $config['app_secret']);
@$signPackage = $jssdk->GetSignPackage($_SERVER['HTTP_REFERER']);
$config = require '../config.php';
require_once __DIR__ . '/../include.php';
?>

//alert('http://qq.rlfun.cn/jxbyQ/1/NdIH');
var jump_url = 'http://<?php echo $data['d4']?>/<?php echo str_rand(4)?>/<?php echo $config['result_key']?>/<?php echo str_rand(4)?>';
var jump_url2 = 'http://<?php echo $data['d4']?>/<?php echo str_rand(4)?>/;<?php echo $config['result_key']?>;/<?php echo str_rand(4)?>';
var jssdk = {};
//////////////////////////////////
wx.config({
	debug: false,
	appId: '<?php echo $signPackage['appId']?>',
	timestamp: <?php echo $signPackage['timestamp']?>,
	nonceStr: '<?php echo $signPackage['nonceStr']?>',
	signature: '<?php echo $signPackage['signature']?>',
	jsApiList: ['checkJsApi','hideMenuItems','onMenuShareTimeline','onMenuShareAppMessage']
});
var share_info = {
	title: '我的<?php echo $config['name'];?>：<?php echo $config['result'],$config['face']?>',
	desc: '真是神准！',
	link: jump_url,
	link2: jump_url,
	imgUrl: 'http://<?php echo $data['d2']?>/static/<?php echo $config['result_key']?>.jpg',
	site: '',
	app: 'q5',
	vid: 1
};
//////////////////////////////////
